const mongoose = require('mongoose')

// 轮播图表
const carousel =  mongoose.Schema({
  id: { type: Number, unique: true, require: true},
  filesPath: { type: [String], require: true },
  // PC: 0 APP: 1
  type: { type: Number, emnu: [0, 1], require: true },
  // 0: 禁用 1: 开启
  status: { type: Number, emmu: [0, 1], default: 0 },
  describe: { type: String, default: '暂无' },
  createTime: Date
})

module.exports = mongoose.model('carousel', carousel)